#version 110
varying vec4 fcolor;
void main()
{
    gl_Position = ftransform();
    gl_TexCoord[0] = gl_Vertex;//gl_MultiTexCoord1;//
    if(gl_Vertex.z > -0.0001 && gl_Vertex.z <= 0.0)
    {
	    fcolor = vec4(0.0,0.0,1.0,1.0);
    }
    else if(gl_Vertex.z > 0.0 && gl_Vertex.z <= 0.01)
    {
	    fcolor = vec4(0.0,1.0,0.0,1.0);
    }
    else if(gl_Vertex.z > 0.01 && gl_Vertex.z < 0.04)
    {
	    fcolor = vec4(1.0,0.0,0.0,1.0);
    }
    else
    {
	    fcolor = vec4(1.0,1.0,1.0,1.0);
    }
}

